package com.chance.cc.crawler.prod.command.trigger.domain.news.yicai;

import com.chance.cc.crawler.core.CrawlerJob;
import com.chance.cc.crawler.meta.core.bean.CrawlerMetaConstant;
import com.chance.cc.crawler.prod.command.job.domain.news.yicai.module.YiCaiNewsTraceCrawlerSchedulerJob;
import com.chance.cc.crawler.prod.command.trigger.CommonCrawlerSchedulerTrigger;

/**
 * @Author Zhao.Hhuan
 * @Date Create in 2021/6/30 18:40
 * @Description
 *      第一财经
 **/
public class YiCaiCommonCrawlerScheduleTrigger extends CommonCrawlerSchedulerTrigger {


    public static void main(String[] args) {
        publishYiCaiTraceCrawlerScheduleTriggerInfo();

    }

    public static void publishYiCaiTraceCrawlerScheduleTriggerInfo(){
        CrawlerJob crawlerJob = YiCaiNewsTraceCrawlerSchedulerJob.crawlerSchedulejob();

        metaServiceCommand_17.addOrUpdateScheduleCrawlerTrigger(
                crawlerJob.generateCrawlerKey(),
                crawlerJob.generateCrawlerTriggerKey(),
                YiCaiNewsTraceCrawlerSchedulerJob.domain,
                CrawlerMetaConstant.ScheduleJobTrigger_Simple,
                "",
                "第一财经每天凌晨2:10回溯七天数据"
//                0 10 2 * * ?
        );
//
    }


}
